$OpenBSD: patch-server_dhcpd_c,v 1.5 2015/05/12 20:07:51 sthen Exp $
--- server/dhcpd.c.orig	Thu Feb 26 14:35:43 2015
+++ server/dhcpd.c	Mon May 11 01:14:55 2015
@@ -664,6 +664,12 @@ main(int argc, char **argv) {
 	if (lftest)
 		exit (0);
 
+#if defined (PARANOIA)
+	/* Set proper permissions... */
+	if (lchown (path_dhcpd_db, set_uid, set_gid))
+		log_fatal ("lchown(%s, %d, %d): %m", path_dhcpd_db, (int) set_uid, (int) set_gid);
+#endif /* PARANOIA */
+
 	/* Discover all the network interfaces and initialize them. */
 	discover_interfaces(DISCOVER_SERVER);
 
